package com.th.atguigu.aopanno;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author ThreePure
 * @date 2022/3/10 10:47
 * @description: TODO
 * @since 1.8
 */
@Component
@Aspect
@Order(0)
public class PersonProxy {
    @Before("execution(* com.th.atguigu.aopanno.User.add(..))")
    public void beforePerson(){
        System.out.println("before of PersonProxy");
    }
}
